using System;
using System.Collections.Generic;
using System.Text;
using emp.Model.SysManage;
using emp.IDAL.SysManage;
using System.Collections;

namespace emp.BLL.SysManage
{
    public class UserOrganiz
    {
        public int Insert(UserOrganizInfo myUserOrganiz)
        {

            // Validate input
            if (string.IsNullOrEmpty(myUserOrganiz.OrganizIDStr))
            {
                return 0;
            }
            // Get an instance of the account DAL using the DALFactory
            IUserOrganiz dal = DALFactory.SysManage.UserOrganiz.Create();

            // Call the DAL to insert the account
            return dal.Insert(myUserOrganiz);
        }

        public IList getUserOrganizList(int iUserID)
        {
            // Get an instance of the account DAL using the DALFactory
            IUserOrganiz dal = DALFactory.SysManage.UserOrganiz.Create();

            // Send the udpated account information to the DAL
            return dal.getUserOrganizList(iUserID);
        }
    }
}
